package com.cumt.threeway.adapter;

import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * Created by Jingjing.Hu on 2016/4/1.
 */
public class ClassificationAdapter extends FragmentPagerAdapter{
    private Context mContext;
    private List<Fragment> mList;


    public ClassificationAdapter(FragmentManager fm, Context context, List<Fragment> list) {
        super(fm);
        mContext = context;
        mList = list;
    }

    @Override
    public Fragment getItem(int arg0) {
        return mList.get(arg0);
    }

    @Override
    public int getCount() {
        return mList.size();
    }

}
